package com.apexedu.eas.entity;

import java.sql.Blob;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="TBLOG")
public class Tblog {
	private Long id;       //id
	private String title;  //标题
	private Long category; //新闻类别
	private Long type;     //格式
	private String content; //内容
	private Blob attachment;  //附件
	private Long visits;    //访问次数
	private Long comments;  //评论
	private Date LASTCOMMENTTIME; //回复时间
	private Long uid;          //发布人id
	private String userName;   //发布人姓名
	private Blob picture1;  //相关图片1
	private Blob picture2;  //相关图片2
	private Date pubTime;    //发布时间
	private Long scope;      //发布范围
	private Long stick;      //置顶
	private Long rec;        //推荐
	private Long pick;       //精华
	
	@javax.persistence.Column(name = "ID")
    @Id
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@javax.persistence.Column(name = "TITLE")
    @Basic
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	@javax.persistence.Column(name = "CATEGORY")
    @Basic
	public Long getCategory() {
		return category;
	}
	public void setCategory(Long category) {
		this.category = category;
	}
	@javax.persistence.Column(name = "TYPE")
    @Basic
	public Long getType() {
		return type;
	}
	public void setType(Long type) {
		this.type = type;
	}
	@javax.persistence.Column(name = "CONTENT")
    @Basic
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@javax.persistence.Column(name = "ATTACHMENT")
    @Basic
	public Blob getAttachment() {
		return attachment;
	}
	public void setAttachment(Blob attachment) {
		this.attachment = attachment;
	}
	@javax.persistence.Column(name = "VISITS")
    @Basic
	public Long getVisits() {
		return visits;
	}
	public void setVisits(Long visits) {
		this.visits = visits;
	}
	@javax.persistence.Column(name = "COMMENTS")
    @Basic
	public Long getComments() {
		return comments;
	}
	public void setComments(Long comments) {
		this.comments = comments;
	}
	@javax.persistence.Column(name = "LASTCOMMENTTIME")
    @Basic
	public Date getLASTCOMMENTTIME() {
		return LASTCOMMENTTIME;
	}
	public void setLASTCOMMENTTIME(Date lASTCOMMENTTIME) {
		LASTCOMMENTTIME = lASTCOMMENTTIME;
	}
	@javax.persistence.Column(name = "UID")
    @Basic
	public Long getUid() {
		return uid;
	}
	public void setUid(Long uid) {
		this.uid = uid;
	}
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	@javax.persistence.Column(name = "PICTURE1")
    @Basic
	public Blob getPicture1() {
		return picture1;
	}
	public void setPicture1(Blob picture1) {
		this.picture1 = picture1;
	}
	@javax.persistence.Column(name = "PICTURE2")
    @Basic
	public Blob getPicture2() {
		return picture2;
	}
	public void setPicture2(Blob picture2) {
		this.picture2 = picture2;
	}
	@javax.persistence.Column(name = "PUBTIME")
    @Basic
	public Date getPubTime() {
		return pubTime;
	}
	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}
	@javax.persistence.Column(name = "SCOPE")
    @Basic
	public Long getScope() {
		return scope;
	}
	public void setScope(Long scope) {
		this.scope = scope;
	}
	@javax.persistence.Column(name = "STICK")
    @Basic
	public Long getStick() {
		return stick;
	}
	public void setStick(Long stick) {
		this.stick = stick;
	}
	@javax.persistence.Column(name = "REC")
    @Basic
	public Long getRec() {
		return rec;
	}
	public void setRec(Long rec) {
		this.rec = rec;
	}
	@javax.persistence.Column(name = "PICK")
    @Basic
	public Long getPick() {
		return pick;
	}
	public void setPick(Long pick) {
		this.pick = pick;
	}
	
}
